import { C_ScrewColorEnum } from "../../C_Config";
import C_SwitchFrame from "../../component/C_SwitchFrame";
/** 关卡组件 */
const { ccclass, property } = cc._decorator;

@ccclass
export default class C_Screw extends cc.Component {
    @property({ editorOnly: true })
    _color: number = 0;

    @property({ type: cc.Enum(C_ScrewColorEnum) })
    set color(v: number) {
        this._color = v;
        this.screwFrame.frameIndex = v;
    }

    get color() {
        return this._color;
    }

    @property(C_SwitchFrame)
    screwFrame: C_SwitchFrame = null;

    protected onLoad(): void {
    }

}
